package com.alogic.blob.naming;

import com.alogic.blob.BlobManager;
import com.alogic.blob.vfs.VFSBlobManager;
import com.alogic.naming.context.XmlOutter;
import com.anysoft.util.Properties;
import com.anysoft.util.PropertiesConstants;

/**
 * 外联文件
 *
 * @since 1.6.13.1
 */
public class Link extends XmlOutter<BlobManager> {
    /**
     * 缺省类
     */
    protected String dftClass = VFSBlobManager.class.getName();

    @Override
    public void configure(Properties p) {
        dftClass = PropertiesConstants.getString(p,"dftClass", dftClass);
    }

    @Override
    public String getObjectName() {
        return "blob";
    }

    @Override
    public String getDefaultClass() {
        return dftClass;
    }

    @Override
    public String getDefaultXrc() {
        return "java:///com/alogic/blob/default.link.xml#"+ Link.class.getName();
    }
}
